package designPattern.adapter.voltage;

public class Main {

	public static void main(String[] args) {
		//场景：在日本要用中国的电器
		Appliance chineseAppliance = new ChinaAppliance(110);
		chineseAppliance.run();


		Appliance chinaAppliance = new ChinaAppliance(110);
		VoltageAdapter adapter = new JapanToChinaVoltageAdapter(chinaAppliance);
		adapter.changeVoltage();
		chinaAppliance.run();
	}
}
